package com.offroader.core;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.umeng.analytics.MobclickAgent;

public abstract class OffRoaderFragmentActivity extends AppCompatActivity implements IOffRoader{
	private ActivityProxy activityProxy;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		activityProxy = new ActivityProxy(this);
		activityProxy.onCreate(savedInstanceState);

	}

	@Override
	protected void onResume() {
		super.onResume();
		activityProxy.onResume();
		//友盟
		MobclickAgent.onResume(this); //统计时长
	}

	@Override
	protected void onPause() {
		super.onPause();
		activityProxy.onPause();
		//友盟
		MobclickAgent.onPause(this);
	}

	@Override
	protected void onStop() {
		super.onStop();

		activityProxy.onStop();
	}

	@Override
	public void onLowMemory() {
		super.onLowMemory();

		activityProxy.onLowMemory();
	}

	@Override
	protected void onDestroy() {
		super.onDestroy();

		activityProxy.onDestroy();
	}
}
